package submarine;

import javax.swing.ImageIcon;

/**
 * 炸弹
 */
public class Bomb extends SeaObject {

    public Bomb(int x, int y){
        super(9, 12, x, y, 3);
    }

    public void move(){
        y += speed;
    }

    public ImageIcon getImage() {
        return Images.bomb;
    }

    public boolean isOutOfBounds(){
        return y >= World.HEIGHT;
    }

}
